package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 常量字典表
 * @TableName sys_dict
 */
@CollectionName(value ="sys_dict")
@Data
public class SysDict implements Serializable {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField(value = "parent_id")
    @ApiModelProperty("上级id")
    private String parentId;

    @CollectionField(value = "code")
    private String code;

    @CollectionField(value = "level")
    @ApiModelProperty("层级")
    private Integer level;

    @CollectionField(value = "value")
    @ApiModelProperty("")
    private Integer value;

    @CollectionField(value = "text")
    private String text;

    @CollectionField(value = "old_value")
    private Integer oldValue;

    @CollectionField(value = "extend")
    @ApiModelProperty("扩展信息")
    private String extend;

    @CollectionField(value = "remark")
    @ApiModelProperty("备注")
    private String remark;

    @CollectionField(exist = false)
    private static final long serialVersionUID = 1L;

}
